package think.innerclasses;

public class DotThis {
    void f(){
        System.out.println(this.toString());
    }
    public class Inner{
        public DotThis outer(){
            return DotThis.this;
        }
    }
    public Inner inner(){
        return new Inner();
    }

    public static void main(String[] args) {
        DotThis dt=new DotThis();
        DotThis dtt=new DotThis();
        //DotThis.Inner dti2=dt.new Inner();
        dt.f();
        DotThis.Inner dti=dtt.inner();
        dti.outer().f();
    }
}
